package com.blb.search_service.repo;

import com.blb.search_service.entity.Goods;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * goods索引操作接口
 */
public interface GoodsRepository extends ElasticsearchRepository<Goods,Long> {

    List<Goods> findByNameLike(String name);

    List<Goods> findByPriceBetween(Double p1,Double p2);
}
